<!--
 * @Author: cl
 * @Description: 
 * @Date: 2023-04-06 17:11:53
 * @LastEditTime: 2023-04-06 17:30:33
 * @FilePath: \jsnode\css\tank\tank.html
 * @LastEditors: cl
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <canvas id="canvas"></canvas>
    <script>
        const tankCanvas = document.getElementById('canvas');
        const app = tankCanvas.getContext('2d');
        //颜料
        app.fillStyle = 'green'
        app.fillRect = (10,10,300,300)

    </script>
</body>
</html>
